import request from '../request';
const api_name = `/api/order/orderInfo`;
export default {
  submitOrder(hoscode, scheduleId, patientId) {
    return request({
      url: `${api_name}/auth/submitOrder/${hoscode}/${scheduleId}/${patientId}`,
      method: 'post',
    });
  },
  getOrderInfoPageList(page, limit, searchObj) {
    return request({
      url: `${api_name}/auth/${page}/${limit}`,
      method: 'get',
      params: searchObj,
    });
  },
  getStatusList() {
    return request({
      url: `${api_name}/auth/getStatusList`,
      method: 'get',
    });
  },

  getOrderInfo(orderId) {
    return request({
      url: `${api_name}/auth/getOrderInfo/${orderId}`,
      method: 'get',
    });
  },

  cancelOrder(orderId) {
    return request({
      url: `${api_name}/auth/cancelOrder/${orderId}`,
      method: 'get',
    });
  },
};
